using System;
using DevExpress.Xpo;

namespace Objects
{
    [NonPersistent]
    public class Nguoi : XPObject
    {
        public Nguoi()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public Nguoi(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        private string _diaChi;
        private string _dienThoai;
        private bool _gioiTinh;
        private string _email;
        private DateTime _ngaySinh;

        public bool GioiTinh
        {
            get
            {
                return _gioiTinh;
            }
            set
            {
                SetPropertyValue("GioiTinh", ref _gioiTinh, value);
            }
        }
        
        public DateTime NgaySinh
        {
            get
            {
                return _ngaySinh;
            }
            set
            {
                SetPropertyValue("NgaySinh", ref _ngaySinh, value);
            }
        }


        public string DienThoai
        {
            get
            {
                return _dienThoai;
            }
            set
            {
                SetPropertyValue("DienThoai", ref _dienThoai, value);
            }
        }

        public string Email
        {
            get
            {
                return _email;
            }
            set
            {
                SetPropertyValue("Email", ref _email, value);
            }
        }
        public string DiaChi
        {
            get
            {
                return _diaChi;
            }
            set
            {
                SetPropertyValue("DiaChi", ref _diaChi, value);
            }
        }

    }

}